package com.wtwd.device.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wtwd.device.model.entity.AlarmInfo;

import java.util.List;


/**
 * <p>
 * 服务类
 * </p>
 *
 * @author mjy
 * @since 2021-11-18
 */
public interface AlarmInfoService {

    /**
     * 获取所有的设备id
     *
     * @param deviceId
     * @return
     */
    List<AlarmInfo> getAllAlarmByDeviceId(Long deviceId);

    IPage queryPage(AlarmInfo alarmInfo, Page<AlarmInfo> page);

    Integer save(AlarmInfo alarmInfo);

    Integer updateAlarm(AlarmInfo alarmInfo);

    Integer deleteAlarm(Long id);

    Integer bathUpdateAlarmState(List<AlarmInfo> alarmInfos);
}
